package com.leilbase.userservice.services;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class UserDemoSerivce {

    @Autowired
    RestTemplate restTemplate;

    public String testRibbon() {
        return restTemplate.getForObject("http://admin-service/hi", String.class);
    }

    public String sentinelError() {
        return "sentinelError";
    }

}
